home *** CD-ROM | disk | FTP | other *** search
/ NT Sources / Infomagic - NT Source Volume 1 (Disc 1 of 2).iso / network / pcdctrla.exe / PCDCTRL.EXE / PCDAUTO.TPU < prev    next >
Text File  |  1997-04-03  |  1KB  |  35 lines

  1. !+++
  2. ! PCDUO_AUTOEXEC.TPU - Edit AUTOEXEC.BAT for PC-Duo
  3. !---
  4.  
  5. LUT_start_edit ();      ! This reads the file (if it exists), creates a buffer,
  6.                         ! and positions us at the top of the buffer
  7.  
  8. IF LUT_buffer_empty
  9. THEN
  10.     quit;               ! Error - the input file must exist!
  11. ENDIF;
  12.  
  13. ! Perform edits to the target PC AUTOEXEC.BAT file.
  14. !
  15. ! This edit is not necessary if PATHWORKS 5 template(s) were found on the PC,
  16. ! as PC-Duo startup is more readily controlled using the [User Commands]
  17. ! section of the template.
  18. !
  19. ! Search for a NET START line. If one is found, change it to NET START
  20. ! NETBEUI. This will load a real-mode network, suitable for the PC-Duo DOS
  21. ! SLAVE TSR to load. This is not necessary if the PC is running PATHWORKS,
  22. ! as that always loads a real-mode network during NET START (or STARTNET.BAT).
  23.  
  24. !   LUT_line_replace_add ("net start", "net start netbeui");
  25.  
  26. ! Search for a reference to the PC-Duo startup batch file STARTTSR.BAT.
  27. ! If one is found, replace it with the new text. If none are found, add
  28. ! a new line at the end of the file.
  29.  
  30. LUT_line_replace_add ("starttsr", "if exist \pcduo\starttsr.bat   call \pcduo\starttsr.bat");
  31.  
  32. ! And now perform 'standard' finishing functions...
  33.  
  34. LUT_finish_edit ();
  35.